package com.atguigu.gulimall.search.vo;

import com.atguigu.common.to.es.SkuEsModel;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author: jianPing
 * @date: 2022/3/11 17:13
 * @description:
 */
@Data
public class EsSearchResponse implements Serializable {
    private List<SkuEsModel> products;
    private Integer pageNum;
    private Long total;
    private Integer totalPages;
    private List<Integer> pageNavs;
    /**
     * 当前查询到的结果所涉及的品牌
     */
    private List<BrandVo> brands;
    /**
     * 当前查询到的结果所涉及的属性
     */
    private List<AttrVo> attrs;
    /**
     * 当前查询到的结果所涉及的分类
     */
    private List<CatelogVo> catelogs;

    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    /**
     * 面包屑导航
     */
    private List<NavVo> navs;

    @Data
    public static class NavVo{
        private String navName;
        private String navValue;
        private String link;

    }

    @Data
    public static class CatelogVo{
        private Long catelogId;
        private String catelogName;

    }
    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}
